{template "content","header"}
<?php
			$uid = get_memberinfo_buyusername($username,'userid');
			$memberinfoimg1=get_memberavatar($_userid);
			$show = ($_username == $username) ? 1 : 0;
			$friend_model = pc_base::load_model('space_friend_model');
			 $info = $friend_model->get_one(array('fname'=>$username,'username'=>$_username),'username');
		 	$guanzu = $info ? 1 : 0;
			
?>
<div class="content">
	<div class="location">
	<a href="http://127.0.0.14/index.php?m=content&c=index&a=lists&catid={$catid}">游记</a> > <a>{$title}</a>
	</div>
	<div class="clear"></div>
	<div class="content_left">
		<div class="detail">
			<h1 class="title">{$title}</h1>
			<div class="detail_c">{$content}</div>
			<div id="bdshare" class="bdshare_b"><img src="{IMG_PATH}type-button-1.jpg" />
                <a class="shareCount"></a>
            	</div>
        <script type="text/javascript" id="bdshare_js" data="type=button&amp;uid=427792" ></script>
        <script type="text/javascript" id="bdshell_js"></script>
        <script type="text/javascript">
            document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + new Date().getHours();
        </script>
		</div>
		{if $allow_comment && module_exists('comment')}
      <iframe src="{APP_PATH}index.php?m=comment&c=index&a=init&commentid={id_encode("content_$catid",$id,$siteid)}&iframe=1" width="100%" height="100%" id="comment_iframe" frameborder="0" scrolling="no"></iframe>
        {/if}
		<div class=" clear"></div>
	</div>
	<div class="content_right">
		<div class="member_info">
		<div class="pic"><a href="{member_url($username)}" target="_blank"><img src="{$memberinfoimg1}"  align="top" height="40" width="40" onerror="this.src='<?php echo CSS_PATH?>zouzou/images/22.png'" /></a></div>
		<div class=" text">
		<h1>作者:<a href="{member_url($username)}" target="_blank">{$username}</a> <span id="guanzhu">{if $guanzu}已关注！{else}<a href="#"  onClick="fensi('{$username}','{$uid}',{$show},1);return false;"><img src="{CSS_PATH}zouzou/images/icon01.png" alt="关注" /></a>{/if}</span></h1>
		<p class="fg"><b>{get_member_dj($username)}</b></p>
		<p>发布时间:{date('Y-m-d',$rs['inputtime'])}</p><br />
		<p >浏览:{$rs['hits']}</p>
		<p>评论:{$rs['comments']}</p>
		</div>
		<div class="clear"></div>
		</div>
		
		<div class="more_diary">
		<div class="title"><h1>更多相关游记</h1></div>
		<ul>
		{pc:content action="relation" relation="$relation" id="$id" catid="$catid" num="20" keywords="$rs[keywords]"}
              {if $data}
                  {loop $data $r}
                     <li> >  <a href="{$r[url]}" target="_blank">{$r[title]}</a></li>
                   {/loop}              
			  {/if}
          {/pc}
		</ul>
		</div>
	</div>
</div>
<script type="text/javascript">
<!--
	function show_ajax(obj) {
		var keywords = $(obj).text();
		var offset = $(obj).offset();
		var jsonitem = '';
		$.getJSON("{APP_PATH}index.php?m=content&c=index&a=json_list&type=keyword&modelid={$modelid}&id={$id}&keywords="+encodeURIComponent(keywords),
				function(data){
				var j = 1;
				var string = "<div class='point key-float'><div style='position:relative'><div class='arro'></div>";
				string += "<a href='JavaScript:;' onclick='$(this).parent().parent().remove();' hidefocus='true' class='close'><span>关闭</span></a><div class='contents f12'>";
				if(data!=0) {
				  $.each(data, function(i,item){
					j = i+1;
					jsonitem += "<a href='"+item.url+"' target='_blank'>"+j+"、"+item.title+"</a><BR>";
					
				  });
					string += jsonitem;
				} else {
					string += '没有找到相关的信息！';
				}
					string += "</div><span class='o1'></span><span class='o2'></span><span class='o3'></span><span class='o4'></span></div></div>";		
					$(obj).after(string);
					$('.key-float').mouseover(
						function (){
							$(this).siblings().css({"z-index":0})
							$(this).css({"z-index":1001});
						}
					)
					$(obj).next().css({ "left": +offset.left-100, "top": +offset.top+$(obj).height()+12});
				});
	}

	function add_favorite(title) {
		$.getJSON('{APP_PATH}api.php?op=add_favorite&title='+encodeURIComponent(title)+'&url='+encodeURIComponent(location.href)+'&'+Math.random()+'&callback=?', function(data){
			if(data.status==1)	{
				$("#favorite").html('收藏成功');
			} else {
				alert('请登录');
			}
		});
	}

$(function(){
  $('#Article .content img').LoadImage(true, 660, 660,'{IMG_PATH}s_nopic.gif');    
})
//-->
</script>
<script language="JavaScript" src="{APP_PATH}api.php?op=count&id={$id}&modelid={$modelid}&hits=1"></script>
{template "content","footer"}